import 'package:flutter/material.dart';

class Group extends Column{

  Group({
    super.key,
    String? title,
    double? height,
    double? width,
    double? minHeight,
    double? maxHeight,
    double? minWidth,
    double? maxWidth,
    Widget? child,
    BuildContext? context
  }) : super(
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        title != null ? Padding(
          padding: const EdgeInsets.only(top: 10, bottom: 10, left: 10),
          child: Container(
            alignment: Alignment.centerLeft,
            child: Text(title??'',
                style: const TextStyle(
                    fontSize: 18,
                    fontWeight: FontWeight.w600,
                    color: Color.fromARGB(255, 128, 128, 128)
                )
            ),
          )
        ) : Container(),
        Container(
          constraints: const BoxConstraints(
            minHeight: 50
          ),
          // height: height??double.infinity,
          // width: width??MediaQuery.of(context!).size.width,
          decoration: BoxDecoration(
              color: const Color.fromARGB(255, 255, 255, 255),
              borderRadius:  BorderRadius.circular(10.0)
          ),
          child: child,
        )
      ]
  );
}